import request from '@/utils/request'

// 查询合同创建与审批列表
export function listNcContractCreationApproval(query) {
  return request({
    url: '/sales/NcContractCreationApproval/list',
    method: 'get',
    params: query
  })
}

// 查询合同创建与审批详细
export function getNcContractCreationApproval(id) {
  return request({
    url: '/sales/NcContractCreationApproval/' + id,
    method: 'get'
  })
}

// 新增合同创建与审批
export function addNcContractCreationApproval(data) {
  return request({
    url: '/sales/NcContractCreationApproval',
    method: 'post',
    data: data
  })
}

// 修改合同创建与审批
export function updateNcContractCreationApproval(data) {
  return request({
    url: '/sales/NcContractCreationApproval',
    method: 'put',
    data: data
  })
}

// 删除合同创建与审批
export function delNcContractCreationApproval(id) {
  return request({
    url: '/sales/NcContractCreationApproval/' + id,
    method: 'delete'
  })
}
